<div ng-controller="MyController" class="chatController">
	<div id="messagesDiv">
		<div ng-repeat="msg in messages">
			<code>
				{{msg.from}} 于
				{{msg.time}} 说
			</code>
			<b>:</b>
			{{msg.body}}
		</div>
	</div>
	<input type="text" ng-model="name" placeholder="Name" style="display:none">
	<h6>
		Hi <span class="badge badge-info">{{name}}</span>, enter to send! 
		<a href="#" class="label label-success btn btn-success" ng-click="changeUser()">
			change User next Time
		</a>
		<span for="msg"> Stop scrolling</span>
		<input type="checkbox" ng-model="change" ng-change="stopScroll()"/>
	</h6>
	<input type="text" id="msg" ng-model="msg" ng-keydown="addMessage($event)" placeholder="Message..." style="width:450px;">
</div>